package org.example.service.serviceImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.entity.Pub;
import org.example.entity.Pubinformation;
import org.example.mapper.PubinformationMapper;
import org.example.service.IPubinformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PubinformationServiceImpl extends ServiceImpl<PubinformationMapper, Pubinformation> implements IPubinformationService {
    @Autowired
    private PubinformationMapper pubinformationMapper;


    @Override
    public Pubinformation getPubRoomByPubId(Integer roomId) {
        return pubinformationMapper.getPubRoomById(roomId);
    }
}
